import request from '@/utils/sportsRequest'

// 查询配置列表
export function listEnums() {
  return request({
    url: '/sports-activity/rank/common/enums',
    method: 'get',
  })
}

export function listRank(query) {
  return request({
    url: '/sports-activity/rank/common/top/list',
    method: 'get',
    params: query
  })
}

export function toRedisRank(query) {
  return request({
    url: '/sports-activity/rank/common/flush-to-redis',
    method: 'get',
    params: query
  })
}


export function getActivityUsedInRank(query) {
  return request({
    url: '/sports-activity/rank/common/used/in-rank',
    method: 'get',
    params: query
  })
}

export function removeRank(data) {
  return request({
    url: '/sports-activity/rank/common/remove/rank',
    method: 'get',
    params: data
  })
}

export function fakeVote(data) {
  return request({
    url: '/sports-activity/rank/common/fakeVote',
    method: 'get',
    params: data
  })
}
